﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;
using WAF.Server;
using WAF.Server.Ipc;
using System.ServiceModel.Channels;
using System.ServiceModel;
using System.Text;

namespace TestWebServer
{
    public class Global : System.Web.HttpApplication
    {
        static WebServerService webServerService;

        protected void Application_Start(object sender, EventArgs e)
        {

            webServerService = new WebServerService();


        }

        protected void Application_End(object sender, EventArgs e)
        {
            
        }

        protected void Application_BeginRequest(object sender, EventArgs e)
        {
            webServerService.SendNativeRequest(Context.Request, Context.Response);


        }

    }
}